package com.ruiysoft.controller.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * OrderDeliverVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-12-02T15:16:52.306+08:00")

public class OrderDeliverVo {
  @JsonProperty("orderNo")
  private String orderNo = null;

  @JsonProperty("logisticsNo")
  private String logisticsNo = null;

  @JsonProperty("code")
  private String code = null;

  @JsonProperty("name")
  private String name = null;

  public OrderDeliverVo orderNo(String orderNo) {
    this.orderNo = orderNo;
    return this;
  }

  /**
   * 订单号
   * @return orderNo
  **/
  @ApiModelProperty(value = "订单号")


  public String getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(String orderNo) {
    this.orderNo = orderNo;
  }

  public OrderDeliverVo logisticsNo(String logisticsNo) {
    this.logisticsNo = logisticsNo;
    return this;
  }

  /**
   * 物流单号
   * @return logisticsNo
  **/
  @ApiModelProperty(value = "物流单号")


  public String getLogisticsNo() {
    return logisticsNo;
  }

  public void setLogisticsNo(String logisticsNo) {
    this.logisticsNo = logisticsNo;
  }

  public OrderDeliverVo code(String code) {
    this.code = code;
    return this;
  }

  /**
   * 物流公司编码
   * @return code
  **/
  @ApiModelProperty(value = "物流公司编码")


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public OrderDeliverVo name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 物流公司名称
   * @return name
  **/
  @ApiModelProperty(value = "物流公司名称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrderDeliverVo orderDeliverVo = (OrderDeliverVo) o;
    return Objects.equals(this.orderNo, orderDeliverVo.orderNo) &&
        Objects.equals(this.logisticsNo, orderDeliverVo.logisticsNo) &&
        Objects.equals(this.code, orderDeliverVo.code) &&
        Objects.equals(this.name, orderDeliverVo.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(orderNo, logisticsNo, code, name);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrderDeliverVo {\n");

    sb.append("    orderNo: ").append(toIndentedString(orderNo)).append("\n");
    sb.append("    logisticsNo: ").append(toIndentedString(logisticsNo)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

